# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:       加一
# Name:         demo3.04
# Description:  嵌套代码块
# Author:       加一
# Date:         2019/1/22
#-------------------------------------------------------------------------------

name = input("你叫什么名字？")
if name.startswith("Bill"):
    if name.endswith("Grates"):
        print("欢迎Bill Gates先生")
    elif name.endswith("Clinton"):
        print("欢迎克林顿先生")
    else:
        print("未知姓名")
elif name.startswith("李"):
    if name.endswith("宁"):
        print("欢迎李宁老师")
    else:
        print("未知姓名")
else:
    print("未知姓名")